package com.fowo.api.model.supplier.order.product.step;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.excel.ImageConvert;
import com.fowo.api.sys.entity.SysFile;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 供应商订单进度表 导入导出辅助模型 */
@Getter
@Setter
public class SupplierOrderProductStepExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属供应商订单")
  private String parentSupplierOrderSupplierOrder;

  @ExcelIgnore
  @ExcelProperty(value = "所属供应商订单")
  private Long parentSupplierOrder;

  @Size(max = 50, message = "所属供应商订单长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属供应商订单")
  private String supplierOrderId;

  @ExcelProperty(value = "良品率")
  private java.math.BigDecimal goodQuantity;

  @ExcelProperty(value = "进度")
  private java.math.BigDecimal schedule;

  @ExcelProperty(value = "图片", converter = ImageConvert.class)
  private List<SysFile> picUrl;

  @Size(max = 50, message = "备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "备注")
  private String remarks;
}
